const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    proxy: {
      '/dev':{
        target: 'http://' + process.env.VUE_APP_DOMAIN,
        changeOrigin: true,
        // secure: true,
        // ws:true,
        pathRewrite:{
          '^/dev': ''
        }
      },
    "/socket.io": {
      target: 'http://' + process.env.VUE_APP_SOCKET_HOST,
      changeOrigin: true,
      // secure: true,
      ws:true,
      pathRewrite:{
        '^/socket.io': '/socket.io'
      }
    }
    }
  }
})
